﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RotateTest1.aspx.cs" Inherits="ClockControl.RotateTest1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Testing rotation</title>
    <script type="text/javascript">
        function asd (a) 
        {             
            setTimeout(
                function f () 
                {                     
                    if ((a-=a/8) > 0.05) 
                    { 
                        document.body.style.webkitTransform = 'rotate('+a+'deg)';
                        setTimeout(f,0); 
                    } 
                    else 
                    { 
                        document.body.style.webkitTransform = 'rotate(0deg)'; 
                        a=360; setTimeout(f,2222); 
                    } 
                },0);
            }

    </script>
</head>
<body onload="asd(360)">
    <form id="form1" runat="server">
    <div>
        ala bala
    </div>
    </form>
</body>
</html>
